import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MerchantsalesComponent } from './merchantsales/merchantsales.component';
import { PartnersalesComponent } from './partnersales/partnersales.component';
import { SettlementrecordsComponent } from './settlementrecords/settlementrecords.component';
import { WinelistComponent } from './winelist/winelist.component';
import { OrderlistComponent } from './orderlist/orderlist.component';

/** 销售额管理 */
const routes: Routes = [
    { path: 'merchantsales', component: MerchantsalesComponent }, // 餐厅销售额
    { path: 'partnersales', component: PartnersalesComponent }, // 合伙人销售额
    { path: 'settlementrecords', component: SettlementrecordsComponent }, // 结算记录
    { path: 'settlementrecordsMid/:id', component: SettlementrecordsComponent }, // 结算记录
    { path: 'winelist', component: WinelistComponent }, // 酒币消费记录
    { path: 'orderlist', component: OrderlistComponent }, // 用户订单记录
    { path: 'orderlistMid/:id', component: OrderlistComponent }, // 商户订单记录
    { path: 'orderlistUid/:id', component: OrderlistComponent }, // 用户订单记录
    { path: 'winelistUid/:id', component: WinelistComponent }, // 用户订单记录
];

@NgModule({
    imports: [RouterModule.forRoot([{ path: 'salesmanage', children: routes }], { useHash: true })],
    exports: [RouterModule]
})

export class SalesmanageRouting {

}
